package org.dialMsg.Server.ServerImp;

import org.apache.ibatis.annotations.Param;

/**
 * @author DPF
 */
public class ManualCallLogIdSqlProvider {
    public String getMaxIdSql(@Param("yearMonth") String yearMonth) {
        // 验证年月格式 (YYYYMM)
        if (!yearMonth.matches("\\d{6}")) {
            throw new IllegalArgumentException("Invalid yearMonth format");
        }

        return "SELECT MAX(manual_call_log_id) FROM xxm_report.t_ads_manual_call_record_report_" + yearMonth + " order by manual_call_log_id desc limit 1";
    }
}
